package com.bnlr.lrparking.appui.publish;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by tian on 2017/11/25.
 */

public class PublishIntentBean implements Parcelable {
    private String imgString;
    private String fileString;
    private String title;
    private int tag;
    private String publishTitle;
    private String address;
    private String addressDetail;
    private double latitude;
    private double longitude;
    private String carNumber;
    private String floor;
    private String carPlaceId;
    private String mj;
    private String cityName;
    private String areaName;
    private boolean isAlter;
    private String houseName;
    private int IsHaveSpace;
    private String SpaceBuildTime;

    public int getIsHaveSpace() {
        return IsHaveSpace;
    }

    public void setIsHaveSpace(int isHaveSpace) {
        IsHaveSpace = isHaveSpace;
    }

    public String getSpaceBuildTime() {
        return SpaceBuildTime;
    }

    public void setSpaceBuildTime(String spaceBuildTime) {
        SpaceBuildTime = spaceBuildTime;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public boolean isAlter() {
        return isAlter;
    }

    public void setAlter(boolean alter) {
        isAlter = alter;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getImgString() {
        return imgString;
    }

    public void setImgString(String imgString) {
        this.imgString = imgString;
    }

    public String getFileString() {
        return fileString;
    }

    public void setFileString(String fileString) {
        this.fileString = fileString;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public String getPublishTitle() {
        return publishTitle;
    }

    public void setPublishTitle(String publishTitle) {
        this.publishTitle = publishTitle;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getCarPlaceId() {
        return carPlaceId;
    }

    public void setCarPlaceId(String carPlaceId) {
        this.carPlaceId = carPlaceId;
    }

    public String getMj() {
        return mj;
    }

    public void setMj(String mj) {
        this.mj = mj;
    }

    public PublishIntentBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgString);
        dest.writeString(this.fileString);
        dest.writeString(this.title);
        dest.writeInt(this.tag);
        dest.writeString(this.publishTitle);
        dest.writeString(this.address);
        dest.writeString(this.addressDetail);
        dest.writeDouble(this.latitude);
        dest.writeDouble(this.longitude);
        dest.writeString(this.carNumber);
        dest.writeString(this.floor);
        dest.writeString(this.carPlaceId);
        dest.writeString(this.mj);
        dest.writeString(this.cityName);
        dest.writeString(this.areaName);
        dest.writeByte(this.isAlter ? (byte) 1 : (byte) 0);
        dest.writeString(this.houseName);
        dest.writeInt(this.IsHaveSpace);
        dest.writeString(this.SpaceBuildTime);
    }

    protected PublishIntentBean(Parcel in) {
        this.imgString = in.readString();
        this.fileString = in.readString();
        this.title = in.readString();
        this.tag = in.readInt();
        this.publishTitle = in.readString();
        this.address = in.readString();
        this.addressDetail = in.readString();
        this.latitude = in.readDouble();
        this.longitude = in.readDouble();
        this.carNumber = in.readString();
        this.floor = in.readString();
        this.carPlaceId = in.readString();
        this.mj = in.readString();
        this.cityName = in.readString();
        this.areaName = in.readString();
        this.isAlter = in.readByte() != 0;
        this.houseName = in.readString();
        this.IsHaveSpace = in.readInt();
        this.SpaceBuildTime = in.readString();
    }

    public static final Creator<PublishIntentBean> CREATOR = new Creator<PublishIntentBean>() {
        @Override
        public PublishIntentBean createFromParcel(Parcel source) {
            return new PublishIntentBean(source);
        }

        @Override
        public PublishIntentBean[] newArray(int size) {
            return new PublishIntentBean[size];
        }
    };
}
